﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UNSWThink
{
   /// <summary>
   /// Object that represents a Subject entry in the database
   /// </summary>
   public class Subject
   {
      private int id;
      private string name;
      private string code;

      /// <summary>
      /// Default constructor
      /// </summary>
      public Subject()
      {
         id = 0;
         name = String.Empty;
         code = String.Empty;
      }

      /// <summary>
      /// Alternate constructor
      /// </summary>
      /// <param name="id">
      /// ID of the record
      /// </param>
      /// <param name="name">
      /// Name of the subject
      /// </param>
      /// <param name="code">
      /// Course code of the subject
      /// </param>
      public Subject(int id, string name, string code)
      {
         this.id = 0;
         this.name = name;
         this.code = code;
      }

      /// <summary>
      /// Gets or sets the ID
      /// </summary>
      public int ID
      {
         get
         {
            return id;
         }
         set
         {
            id = value;
         }
      }

      /// <summary>
      /// Gets or sets the name
      /// </summary>
      public string Name
      {
         get
         {
            return name;
         }
         set
         {
            name = value;
         }
      }

      /// <summary>
      /// Gets or sets the code
      /// </summary>
      public string Code
      {
         get
         {
            return Code;
         }
         set
         {
            code = value;
         }
      }
   }
}
